package com.hdoit.apollo.logical.purchase.model;

import java.util.Date;
import java.util.List;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Entity;
import javax.persistence.Transient;

import com.hdoit.apollo.logical.shop.model.Supplier;
import com.tennetcn.data.message.ModelBase;
/**
 * @author      humaoshu
 * @email       
 * @createtime  2018年05月23日 09:47:23
 * @comment
 */
@Entity
@Table(name="billing_purchase")
public class Purchase extends ModelBase{
    /**
     *主键
     */
    @Id
    @Column(name="purchaseId")
    private String purchaseId;

    /**
     *供应商id
     */
    @Column(name="supplierId")
    private String supplierId;

    /**
     *采购数量
     */
    @Column(name="purchaseNum")
    private Double purchaseNum;

    /**
     *采购金额
     */
    @Column(name="purchaseMoney")
    private Double purchaseMoney;

    /**
     *其它金额
     */
    @Column(name="otherMoney")
    private Double otherMoney;

    /**
     *采购单号
     */
    @Column(name="purchaseNo")
    private String purchaseNo;

    /**
     *采购日期
     */
    @Column(name="purchaseDate")
    private Date purchaseDate;

    /**
     *采购员
     */
    @Column(name="purchaseName")
    private String purchaseName;

    /**
     *采购状态
     */
    @Column(name="purchaseState")
    private String purchaseState;

    /**
     *入库数量
     */
    @Column(name="purchaseInNum")
    private Double purchaseInNum;
    
    //项目明细使用状态
    @Column(name="allocationState")
    private String allocationState;
    
    //支付状态
    @Column(name="payState")
    private String payState;
    
    //已支付金额
    @Column(name="havePayMoney")
    private Double havePayMoney;
    
    
    @Transient
    private String collocationIds;
    
    @Transient
    private String purchaseNums;

    @Transient
    private String purchasePrices;
    
    @Transient
    private String unit;
    
    @Transient
    private Supplier supplier;
    
    @Transient
    private List<PurchaseCollocation> purchaseCollocations;

    /**
     *门店
     */
    @Column(name="shopId")
    private String shopId;

    /**
     *备注
     */
    @Column(name="comment")
    private String comment;

    /**
     *创建时间
     */
    @Column(name="createDate")
    private Date createDate;

    /**
     *创建人
     */
    @Column(name="createUserId")
    private String createUserId;

    /**
     *创建人名称
     */
    @Column(name="createUserName")
    private String createUserName;

    /**
     *修改时间
     */
    @Column(name="modifyDate")
    private Date modifyDate;

    /**
     *修改人
     */
    @Column(name="modifyUserId")
    private String modifyUserId;

    /**
     *修改人名称
     */
    @Column(name="modifyUserName")
    private String modifyUserName;

    /**
     *删除标记
     */
    @Column(name="deleteMark")
    private Integer deleteMark;
    
    public String getAllocationState() {
		return allocationState;
	}
	public void setAllocationState(String allocationState) {
		this.allocationState = allocationState;
	}
	public String getCollocationIds() {
		return collocationIds;
	}
	public void setCollocationIds(String collocationIds) {
		this.collocationIds = collocationIds;
	}
	public String getPurchaseNums() {
		return purchaseNums;
	}
	public void setPurchaseNums(String purchaseNums) {
		this.purchaseNums = purchaseNums;
	}
	public String getPurchasePrices() {
		return purchasePrices;
	}
	public void setPurchasePrices(String purchasePrices) {
		this.purchasePrices = purchasePrices;
	}
	public String getPurchaseId(){
        return this.purchaseId;
    }
    public void setPurchaseId(String purchaseId){
         this.purchaseId=purchaseId;
    }

    public String getSupplierId(){
        return this.supplierId;
    }
    public void setSupplierId(String supplierId){
         this.supplierId=supplierId;
    }

    public Double getPurchaseNum(){
        return this.purchaseNum;
    }
    public void setPurchaseNum(Double purchaseNum){
         this.purchaseNum=purchaseNum;
    }

    public Double getPurchaseMoney(){
        return this.purchaseMoney;
    }
    public void setPurchaseMoney(Double purchaseMoney){
         this.purchaseMoney=purchaseMoney;
    }

    public Double getOtherMoney(){
        return this.otherMoney;
    }
    public void setOtherMoney(Double otherMoney){
         this.otherMoney=otherMoney;
    }

    public String getPurchaseNo(){
        return this.purchaseNo;
    }
    public void setPurchaseNo(String purchaseNo){
         this.purchaseNo=purchaseNo;
    }

    public Date getPurchaseDate(){
        return this.purchaseDate;
    }
    public void setPurchaseDate(Date purchaseDate){
         this.purchaseDate=purchaseDate;
    }

    public String getPurchaseName(){
        return this.purchaseName;
    }
    public void setPurchaseName(String purchaseName){
         this.purchaseName=purchaseName;
    }

    public String getPurchaseState(){
        return this.purchaseState;
    }
    public void setPurchaseState(String purchaseState){
         this.purchaseState=purchaseState;
    }

    public Double getPurchaseInNum(){
        return this.purchaseInNum;
    }
    public void setPurchaseInNum(Double purchaseInNum){
         this.purchaseInNum=purchaseInNum;
    }

    public String getShopId(){
        return this.shopId;
    }
    public void setShopId(String shopId){
         this.shopId=shopId;
    }

    public String getComment(){
        return this.comment;
    }
    public void setComment(String comment){
         this.comment=comment;
    }

    public Date getCreateDate(){
        return this.createDate;
    }
    public void setCreateDate(Date createDate){
         this.createDate=createDate;
    }

    public String getCreateUserId(){
        return this.createUserId;
    }
    public void setCreateUserId(String createUserId){
         this.createUserId=createUserId;
    }

    public String getCreateUserName(){
        return this.createUserName;
    }
    public void setCreateUserName(String createUserName){
         this.createUserName=createUserName;
    }

    public Date getModifyDate(){
        return this.modifyDate;
    }
    public void setModifyDate(Date modifyDate){
         this.modifyDate=modifyDate;
    }

    public String getModifyUserId(){
        return this.modifyUserId;
    }
    public void setModifyUserId(String modifyUserId){
         this.modifyUserId=modifyUserId;
    }

    public String getModifyUserName(){
        return this.modifyUserName;
    }
    public void setModifyUserName(String modifyUserName){
         this.modifyUserName=modifyUserName;
    }

    public Integer getDeleteMark(){
        return this.deleteMark;
    }
    public void setDeleteMark(Integer deleteMark){
         this.deleteMark=deleteMark;
    }
	public Supplier getSupplier() {
		return supplier;
	}
	public void setSupplier(Supplier supplier) {
		this.supplier = supplier;
	}
	public List<PurchaseCollocation> getPurchaseCollocations() {
		return purchaseCollocations;
	}
	public void setPurchaseCollocations(
			List<PurchaseCollocation> purchaseCollocations) {
		this.purchaseCollocations = purchaseCollocations;
	}
	public String getPayState() {
		return payState;
	}
	public void setPayState(String payState) {
		this.payState = payState;
	}
	public Double getHavePayMoney() {
		return havePayMoney;
	}
	public void setHavePayMoney(Double havePayMoney) {
		this.havePayMoney = havePayMoney;
	}
	public String getUnit() {
		return unit;
	}
	public void setUnit(String unit) {
		this.unit = unit;
	}


}